$(document).ready(function(){
						   
	var validator = $("#frmPayment_lead").validate({
		errorElement:'div',
		rules: {
			message: {
				required: true
			},			
			cardfirstname: {
				required: true,
				character:true,
				minlength:3,
				maxlength: 50				
			},
			cardllastname: {
				required:  true,
				character:true,
				minlength:3,
				maxlength: 50				
			},
			billingaddr:{
				required:  true,
				minlength:10
			},
			state:{
				required:  true
			},
			cardpostalcode:{
				required:  true,
			},
			city:{
				required:  true
			},
			/*,
			cardtype:{
				required:  true
			},
			state:{
				required:  true
			},
			city:{
				required:  true
			},
			cardpostalcode:{
				required:  true,
				minlength:3
			},
			cardnumber:{
				required:  true,
				number:true
			},
			cardcode:{
				required:  true,
				number:true
			},
			cardmonth:{
				required: true
			},
			carddate:{
				required:  true
			}	
			*/	
		},
		messages: {
			message: {
				required: "Please enter message"
			},			
			cardfirstname:{
				required: "Enter your first name",
				character: "Please enter characters only",
				minlength: "Please Enter Minimum 3 Charaters",
				maxlength: "Name length should be maximum 50 characters"				
			},
			cardllastname: {
				required: "Enter your last name",
				character: "Please enter characters only",
				minlength: "Please Enter Minimum 3 Charaters",
				maxlength: "Name length should be maximum 50 characters"
			},
			billingaddr:{
				required: "Enter your billing address",
				minlength: "Please Enter Minimum 10 Charaters"
			},			
			state:{
				required: "Select State"
			},
			cardpostalcode:{
				required: "Enter Postal Code",
			},
			city:{
				required: "Select City"
			},
			/*
			cardtype:{
				required: "Select Card Type"
			},
			state:{
				required: "Select State"
			},
			city:{
				required: "Select City"
			},
			cardpostalcode:{
				required: "Enter Postal Code",
				minlength: "Please Enter Minimum 3 Characters"
			},
			cardnumber:{
				required: "Enter Card Number",
				number: 	"Please enter digits only"	
			},
			cardcode:{
				required: "Enter Security Code",
				number: 	"Please enter digits only"	
			},
			cardmonth:{
				required: "Select Month"
			},
			carddate:{
				required: "Select Year"
			}
			*/
		}
	});


	
});